import request from '@/utils/request'

const orderWriteOff = {
  // 设备投入回本
  GetSelfServiceCarList(data) {
    return request({
      url: '/api/admin/core/SelfServiceCarWashMachine/GetSelfServiceCarWashMachineDeviceCostList',
      method: 'post',
      data
    })
  },
  // 根据店铺ID获取设备回本总情况
  GetSelfServiceCarStoreId(data) {
    return request({
      url: '/api/admin/core/SelfServiceCarWashMachine/GetSelfServiceCarWashMachineDeviceTotalCostByStoreId',
      method: 'post',
      data
    })
  },
  // 根据店铺ID获取站点设备回本情况
  GetSelWashStationStoreId(data) {
    return request({
      url: '/api/admin/core/SelfServiceCarWashMachine/GetSelfServiceCarWashStationDeviceCostByStoreId',
      method: 'post',
      data
    })
  },
  // 基建回本情况
  GetStationInfrastructurePayoff(data) {
    return request({
      url: '/api/admin/core/SelfServiceCarWashStation/GetStationInfrastructurePayoff',
      method: 'post',
      data
    })
  },
  // 根据店铺ID获取基建回本总情况
  GetSelfPayoffByStoreId(data) {
    return request({
      url: '/api/admin/core/SelfServiceCarWashStation/GetSelfServiceCarWashInfrastructureTotalPayoffByStoreId',
      method: 'post',
      data
    })
  },
  // 根据店铺ID获取基建回本总情况
  GetSelfServiceCarWashInfrastructurePayoffByStoreId(data) {
    return request({
      url: '/api/admin/core/SelfServiceCarWashStation/GetSelfServiceCarWashInfrastructurePayoffByStoreId',
      method: 'post',
      data
    })
  },
  // 同意基建成本
  ApproveSelfServiceCarWashInfrastructure(data) {
    return request({
      url: '/api/admin/core/SelfServiceCarWashStationInfrastructure/ApproveSelfServiceCarWashInfrastructure',
      method: 'post',
      data
    })
  },
}

export default orderWriteOff